package com.cennavi.minemap.tool;

import java.util.Map;

public class ParseFactory {
	
	private Map<String, String> parameter;
	
	public ParseFactory(Map<String, String> parameter){
		this.parameter = parameter;
	}
	
	public ParseFile createParseFile(String fileName) {
		switch (fileName) {
		case "txt":
			return new ParseJsonFile();
		case "csv":
			return new ParseCsvFile();
		case "zip":
			return new ParseZipFile(parameter);
		default:
			break;
		}
		return null;
	}
}
